<template>
  <div class="admin">
    <leftMenu></leftMenu>
    <div class="right_wrap">
      <sidebar></sidebar>
      <div class="content-box">
        <div class="content">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { reactive, toRefs, onMounted } from 'vue'
import sidebar from "./common/sidebar.vue";
import leftMenu from "./common/leftMenu.vue";
export default {
  name: 'Admin',
  components: {
    sidebar,
    leftMenu
  },
  setup() {
    const data = reactive({})
    onMounted(() => {

    })
    return {
      ...toRefs(data),
    }
  },
}

</script>
<style scoped lang='scss'>
.admin,.right_wrap{
  display: flex;
  height: 100%;
}
.content-box {
  width: calc(100vw - 304px);
}

.content {
  width: 100%;
  height: 100%;
  padding: 30px;
  overflow-y: scroll;
}

</style>